package 笨小猴;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] ch = in.next().toCharArray();
        int[] st = new int[26];
        int n = ch.length, max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            st[ch[i] - 'a']++;
        }
        for (int i = 0; i < 26; i++) {
            if (st[i] > 0) {
                max = Math.max(max, st[i]);
                min = Math.min(min, st[i]);
            }
        }

        if (check(max - min)) {
            System.out.println("Lucky Word");
            System.out.println(max - min);
        } else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }

    private static boolean check(int x) {
        if (x < 2) {
            return false;
        }
        for (int i = 2; i * i <= x; i++) {
            if (x % i == 0) {
                return false;
            }
        }
        return true;
    }
}
